﻿using CodeMan.Domain.Shared.Enums;
using Microsoft.Extensions.Localization;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using Volo.Abp.Domain.Entities;
using Volo.Abp.Domain.Entities.Auditing;

namespace CodeMan.Domain.ClassGens
{
    /// <summary>
    /// 实体类
    /// </summary>
    public class ClassGen : Entity<Int64>
    {
        /// <summary>
        /// 类名
        /// </summary>  
        public string Name { get; set; }
        /// <summary>
        /// 空间、模块
        /// </summary>
        public string Namespace { get; set; }
        /// <summary>
        /// 说明
        /// </summary> 
        public string Desc { get; set; }
        /// <summary>
        /// 类型
        /// </summary> 
        public ClassTypeEnum Type { get; set; } = ClassTypeEnum.Entity;
        /// <summary>
        /// 
        /// </summary> 
        public bool Complete { get; set; } = false;
        /// <summary>
        /// 来源标记
        /// </summary>
        public FromTypeEnum FromType { get; set; }
        /// <summary>
        /// 字段集合
        /// </summary> 
        //public virtual ICollection<ClassAttribute> Attributes { get; set; } = new Collection<ClassAttribute>();

    }
}
